﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Data.Linq.Mapping;
using System.ComponentModel;

namespace Delay
{
     [Table]
    public class userTable : INotifyPropertyChanged
    {
        private int _index;
        [Column(IsPrimaryKey = true, CanBeNull = false, IsDbGenerated = true, DbType = "INT NOT NULL Identity", AutoSync = AutoSync.OnInsert)]
        public int Index
        {
            get
            {
                return _index;
            }
            set
            {
                if (_index != value)
                {

                    _index = value;
                    NotifyPropertyChanged("Index");
                }

            }
        }
        private string _nick;
          [Column]
        public string Nick
        {
            get
            {
                return _nick;
            }
            set
            {
                if (_nick != value)
                {

                    _nick = value;
                    NotifyPropertyChanged("Nick");
                }
            }
        }
        private string _headimg;
        [Column]
        public string Headimg
        {
            get
            {
                return _headimg;
            }
            set
            {
                if (_headimg != value)
                {

                    _headimg = value;
                    NotifyPropertyChanged("Headimg");
                }
            }
        }
        private string _type;
        [Column]
        public string Type
        {
            get
            {
                return _type;
            }
            set
            {
                if (_type != value)
                {

                    _type = value;
                    NotifyPropertyChanged("Type");
                }
            }
        }
        private string _userName;
        [Column]
        public string UserName
        {
            get
            {
                return _userName;
            }
            set
            {
                if (_userName != value)
                {
                    _userName = value;
                    NotifyPropertyChanged("UserName");
                }
            }
        }
        private string _passWord;
        [Column]
        public string PassWord
        {
            get
            {
                return _passWord;
            }
            set
            {
                if (_passWord != value)
                {
                    _passWord = value;
                    NotifyPropertyChanged("PassWord");
                }
            }
        }
        //userid
        private int _userid;
        [Column]
        public int Userid
        {
            get
            {
                return _userid;
            }
            set
            {
                if (_userid != value)
                {
                    _userid = value;
                    NotifyPropertyChanged("Userid");
                }
            }
        }
         //
        private string _lxt;
        [Column]
        public string Lxt
        {
            get
            {
                return _lxt;
            }
            set
            {
                if (_lxt != value)
                {
                    _lxt = value;
                    NotifyPropertyChanged("Lxt");
                }
            }
        }
        private string _sex;
        [Column]
        public string Sex
        {
            get
            {
                return _sex;
            }
            set
            {
                if (_sex != value)
                {
                    _sex = value;
                    NotifyPropertyChanged("Sex");
                }
            }
        }
        private string _sign;
        [Column]
        public string Sign
        {
            get
            {
                return _sign;
            }
            set
            {
                if (_sign != value)
                {
                    _sign = value;
                    NotifyPropertyChanged("Sign");
                }
            }
        }
        private int _viprank;
        [Column]
        public int Viprank
        {
            get
            {
                return _viprank;
            }
            set
            {
                if (_viprank != value)
                {
                    _viprank = value;
                    NotifyPropertyChanged("Viprank");
                }
            }
        }
        private string _vipimgurl;
        [Column]
        public string Vipimgurl
        {
            get
            {
                return _vipimgurl;
            }
            set
            {
                if (_vipimgurl != value)
                {
                    _vipimgurl = value;
                    NotifyPropertyChanged("Vipimgurl");
                }
            }
        }
        private int _userrank;
        [Column]
        public int Userrank
        {
            get
            {
                return _userrank;
            }
            set
            {
                if (_userrank != value)
                {
                    _userrank = value;
                    NotifyPropertyChanged("Userrank");
                }
            }
        }
        //isreg
        private int _isreg;
        [Column]
        public int Isreg
        {
            get
            {
                return _isreg;
            }
            set
            {
                if (_isreg != value)
                {
                    _isreg = value;
                    NotifyPropertyChanged("Isreg");
                }
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    
    }
}
